from fingerprint_iamge_enhancer import *
import cv2
import numpy as np

img = cv2.imread('fingerprint.jpeg', 0)  # Read input image (grayscale)
out = enhance_fingerprint(img)  # Enhance the fingerprint image

# Convert boolean to uint8 (True becomes 255, False becomes 0)
out_display = np.uint8(out) * 255

# Display the result
cv2.imshow('enhanced_image', out_display)  # Display the result
cv2.waitKey(0)
cv2.destroyAllWindows()
